package cn.xz.zysjz.activity;

import androidx.appcompat.app.AppCompatActivity;
import androidx.databinding.DataBindingUtil;

import android.os.Build;
import android.os.Bundle;
import android.view.View;
import android.view.WindowManager;

import cn.xz.zysjz.R;
import cn.xz.zysjz.databinding.ActivityAboutBinding;
import cn.xz.zysjz.utils.AppHelper;

/**
 * 关于我们*/
public class AboutActivity extends AppCompatActivity {

    ActivityAboutBinding mBinding;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        mBinding = DataBindingUtil.setContentView(this, R.layout.activity_about);
        if (Build.VERSION.SDK_INT >= 21) {
            this.getWindow()
                    .setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,WindowManager.LayoutParams.FLAG_FULLSCREEN);
        }
        initEvent();
        initData();
    }

    private void initData(){
        mBinding.tvBb.setText("当前版本: " + AppHelper.getAppVersionName());
    }

    private void initEvent(){
        mBinding.viewBack.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                finish();
            }
        });
    }
}